package com.jianneng.jdg.model.homeactivity;

import com.example.com.jianneng.jdg.R;
import com.example.com.jianneng.jdg.R.id;
import com.example.com.jianneng.jdg.R.layout;
import com.example.com.jianneng.jdg.R.menu;

import android.support.v7.app.ActionBarActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ExamActivity extends BaseActivity implements OnClickListener {
	private LinearLayout mBack;
	private TextView mClickApply;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_exam);
		init();
	}

	private void init() {
		mBack = (LinearLayout) findViewById(R.id.exam_back);
		mClickApply = (TextView) findViewById(R.id.click_apply);
		mClickApply.setOnClickListener(this);
		mBack.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.exam_back:
			finish();
			break;
		case R.id.click_apply:
			Intent intent = new Intent(this, AppayActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}

	}

}
